<div class="row">
    <div class="col-md-8" style="width: 100%;">
        <?php if( isset( $this->CategoryById->title ) ): ?>
            <h4>
                <a href="<?php echo URL_BASE ?>vpanel/"><i class="glyphicon glyphicon-home"></i></a> &raquo; <a id="link_to_pages" href="<?php echo URL_BASE ?>admin/?id=category"">Category</a> &raquo; <?php echo stripslashes( $this->CategoryById->title ) ?>
                <a data-id="<?php echo $_GET['edit_cate'] ?>" id="delete_cate" class="btn btn-primary" href="javascript:void(0);">
                    <i class="glyphicon glyphicon-remove"></i> Delete category
                </a>
            </h4>
            <hr />
            <form action="" method="post" enctype="multipart/form-data" id="category_form">

                <div class="form-group">
                    <label>Title:</label>
                    <input class="form-control" type="text" value="<?php echo stripslashes( $this->CategoryById->title ) ?>" name="title" id="title" />
                </div>


                <div class="form-group">
                    <label>Hash tag :</label>
                    <textarea name="hash_tag" placeholder="#hash1; #hash2; ..." class="form-control"><?php echo $this->CategoryById->hash_tag  ?></textarea>
                </div>


                <div class="form-group">
                    <label>Page order:</label>
                    <input class="form-control" type="text" value="<?php echo stripslashes( $this->CategoryById->sort ) ?>" name="sort" id="sort" placeholder="Order must be numeric" />
                </div>



                <input type="submit" name="submit" value="Save" id="button_update" class="btn btn-primary bt_update button_edit_category" />
                <input type="hidden" name="id" value="<?php echo $_GET['edit_cate'] ?>" />
                <p class="error_edit" id="errors"></p>
                <p class="success_edit" id="edit_success"></p>
            </form><!-- Form -->
        <?php
        else:
            ?>
            <div class="alert alert-danger">
                <i class="glyphicon glyphicon-remove"></i> There are no results
            </div>
        <?php endif; ?>
    </div>
</div><!-- End row -->
